package com.itheima.wallet.web.Controller;

import com.itheima.wallet.common.vo.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.ResponseEntity;

@Api(tags = "支付接口")
public interface WalletController {

    /**
     * 查询账户信息
     * @param token
     * @return
     */
    @ApiOperation("查询账户信息")
    ResponseEntity<ResponseResult> queryAccount(String token);

    /**
     * 充值入口
     * @param money 存入金额
     * @param token token
     * @return
     */
    @ApiOperation("存入金额")
    ResponseEntity<ResponseResult> saveMoney(Double money, String token);

    /**
     * 根据token取钱
     *
     * @param money
     * @param token
     * @return
     */
    @ApiOperation("根据token取钱")
    ResponseEntity<ResponseResult> withdrawMoney(Double money, String token, Integer type);

    /**
     * 根据token，分页 查询交易记录
     *
     * @param token
     * @return
     */
    @ApiOperation("根据token，分页 查询交易记录")
    ResponseEntity<ResponseResult> queryTradeList(Integer page, Integer pageSize, String token);
}
